package com.shuyu.common.utils;

import java.util.Random;

public class VerifyCodeUtil {
    public VerifyCodeUtil() {
    }

    public static String getMsgCode(int length) {
        Random yzm = new Random();
        String yzm1 = "1234567890";
        String yzm3 = "";

        for(int i = 0; i < length; ++i) {
            int a = yzm.nextInt(10);
            yzm3 = yzm3 + yzm1.charAt(a);
        }

        return yzm3;
    }

}